import numpy as np
from PIL import Image 

def main(): 
	try: 
		#Relative Path 
		#Image on which we want to paste 
		img = Image.open("11A69.jpg") 
		im=np.array(img)

		img2 = Image.open("11A692.jpg")
		im2=np.array(img2)

		im[680:2844,120:1854,:] = im2

		newim=Image.fromarray(im.astype('uint8'))
		newim.save("11A69_0.jpg")
        
		
	except IOError: 
		pass

if __name__ == "__main__": 
	main() 

##An additional argument for an optional image mask image is also available. 
